import Vue from 'vue'
import Router from 'vue-router'


// 1. helloword 页面
// import hello from '@/components/helloworld'
import Index from '@/views/Index'
import test from '@/test/test'
import time from '@/test/time'
import count_time from '@/test/count_time'
import Oauth from '@/views/Oauth_callback'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/count_time',
      name: 'count_time',
      component: count_time
    },
    {
      path: '/time',
      name: 'time',
      component: time
    },
    {
      path: '/test',
      name: 'test',
      component: test
    },
    {
      path: '/',
      name: 'index',
      component: Index
    },
    {
      path: '/oauth/callback/',
      name: 'Oauth',
      component: Oauth
    },
    {
      path: '/courses/',
      name: 'courses',
      component: () => import('@/views/courses/List')
    },
    {
      path: '/courses/detail/',
      name: 'courses_detail',
      component: () => import('@/views/courses/Detail')
    },
    {
      path: '/courses/section/',
      name: 'courses_section',
      component: () => import('@/views/courses/Section')
    },
    {
      path: '/courses/search/',
      name: 'courses_search',
      component: () => import('@/views/courses/Search')
    },
    {
      path: '/paths/',
      name: 'paths',
      component: () => import('@/views/paths/List')
    },
    {
      path: '/paths/detail/',
      name: 'paths_detail',
      component: () => import('@/views/paths/Detail')
    },
    {
      path: '/vip/',
      name: 'vip',
      component: () => import('@/views/Vip')
    },
    {
      path: '/questions/',
      name: 'questions',
      component: () => import('@/views/questions/List')
    },
    {
      path: '/questions/detail/',
      name: 'questions_detail',
      component: () => import('@/views/questions/Detail')
    },
    {
      path: '/bootcamp/',
      name: 'bootcamp',
      component: () => import('@/views/Bootcamp')
    },
    {
      path: '/payment/callback/',
      name: 'payment_callback',
      component: () => import('@/views/PayMent')
    },
  ],
  mode: 'history' /*hash,history*/
})


